

package com.hexinfo.dmpro.sparing.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hexinfo.dmpro.sparing.dto.TotalDTO;
import com.hexinfo.dmpro.sparing.model.HotStandbyLogSource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 热备源级日志分析表
 *
 * @author zax
 * @date 2023-11-18 14:24:10
 */
@Mapper
public interface HotStandbyLogSourceMapper extends BaseMapper<HotStandbyLogSource> {
    // 按照条件获取数据
    IPage<HotStandbyLogSource> getHotStandbyLogSources(Page<HotStandbyLogSource> page, HotStandbyLogSource hotStandbyLogSource);

    //获取当天全部表的成功、失败、进行中数量
    TotalDTO getStateAllNum(@Param("taskDate") String taskDate,
                            @Param("completed") String completed,
                            @Param("toBeExecuted") String toBeExecuted,
                            @Param("inProgress") String inProgress,
                            @Param("fail") String fail);

    List<HotStandbyLogSource> sourceHotBackupState();
    List<HotStandbyLogSource> sourceHotBackupStateToDay();
    List<HotStandbyLogSource> sourceHotBackupStateTwo();

}
